﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using System.Data.SqlClient;

namespace QLHD.DAL
{
    public class Lo_DB
    {
        public static DataTable SelectLo()
        {
            using (SqlConnection con = Connection.GetConnection())
            {
                SqlDataAdapter da = new SqlDataAdapter("spSelectAllLo", con);
                con.Open();
                SqlCommand cmd = new SqlCommand("spSelectAllLo", con);
                cmd.CommandType = CommandType.StoredProcedure;
                DataTable dt = new DataTable();
                da.Fill(dt);
                return dt;
            }

        }
       

    }
}
